package com.yunxin.core.infra.persistence.mapper.channel;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunxin.core.infra.persistence.entity.channel.ChannelPromotionUnitPriceConfigVersionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zero°
 * @since 2023-11-24
 */
@DS("core")
@Mapper
public interface ChannelPromotionUnitPriceConfigVersionExtendMapper extends ChannelPromotionUnitPriceConfigVersionMapper{

    /**
     * 根据渠道推广id查询渠道推广结算单价列表
     * @param promotionId promotionId
     * @return List<ChannelPromotionUnitPriceConfigVersionDO>
     */
    List<ChannelPromotionUnitPriceConfigVersionDO> listChannelPromotionUnitPriceConfigVersionByPromotionId(@Param("promotionId") Long promotionId);

}